package com.sam.wang.springframework.beans.factory.support;

import com.sam.wang.springframework.beans.BeansException;
import com.sam.wang.springframework.core.io.Resource;
import com.sam.wang.springframework.core.io.ResourceLoader;

/**
 * @author wangchen
 * @version 1.0
 * @date 2021/9/9 10:11
 **/
public interface BeanDefinitionReader {

    BeanDefinitionRegistry getBeanDefinitionRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

}
